/**
 * 关于调度接口
 */
import request from '@/utils/request'

const api_name = '/monitor/alert'
export default {
  //查询所有触发记录
  getAllAlert(page,limit) {
    return request({
      url: `${api_name}/getAlertMsgVO/${page}/${limit}`,
      method: 'get'
    })
  },
  //根据触发id查询执行结果
  getRuleInfoCompute(triggerId) {
    return request({
      url: `${api_name}/getRuleInfoComputeVO/${triggerId}`,
      method: 'get'
    })
  },
  updateReadByIds(ids) {
    return request({
      url: `${api_name}/read/`,
      method: 'put',
      data: ids
    })
  },
  updateReadById(id) {
    return request({
      url: `${api_name}/updateSend/${id}`,
      method: 'put',
    })
  }
}
